<?php
namespace Home\Controller;
use Think\Controller;

class DtyxWxMerchantController extends CommonController {

    /*
     * 花生米商户登录
     */
    public function PeanutMerchant_logn(){
        $data_des = $this->des_data;
        $uid = $data_des['mobile'];
        if(empty($uid)){
            $this->apiError('请输入手机号');
        }
        if(empty($data_des['code'])){
            $this->apiError('请输入验证码');
        }
        $ser_dtyx_itemcat = new \Common\Server\Dtyx\DtyxMineServer();
        $res = $ser_dtyx_itemcat->getUser_mine($uid);

        if($res['code'] == 1000){
            $this->apiSuccess($res['data'], $res['msg']);
        }
        $this->apiError($res['msg']);
    }
}